import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './style/index.scss'

import Particles from 'vue-particles';
import '@/theme/index.scss';
import { i18n } from '@/i18n/index.js';

import '@/components/lab-bpmn/style/index.scss'
import 'bpmn-js/dist/assets/diagram-js.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'
import Contextmenu from "vue-contextmenujs"
// 引入组价
import components from '@/components/index'
// 引入方法
import common from "@/utils";

Vue.use(Element, { size: 'mini' });
components.forEach(com => {
	Vue.component(com.name, com);
})
common.forEach(com => {
	Vue.prototype[com.name] = com.value
})

Vue.use(Contextmenu);
Vue.use(Particles);

Vue.config.productionTip = false;
Vue.prototype.bus = new Vue();

new Vue({
	router,
	store,
	i18n,
	render: (h) => h(App),
}).$mount('#app');
